//
//  WechatSportsUnunitedView.swift
//  MoyoungMy
//
//  Created by 易先生 on 2022/8/11.
//

import UIKit
import MYModule

class WechatSportsUnunitedView: View {

    
    override func makeUI() {
        
        self.addSubview(iconImageView)
        self.addSubview(descLabel)

        iconImageView.snp.makeConstraints { make in
            make.top.equalToSuperview()
            make.width.height.equalTo(CGSize(width: 150, height: 150))
            make.centerX.equalToSuperview()
        }
        
        descLabel.snp.makeConstraints { make in
            make.top.equalTo(iconImageView.snp.bottom).offset(20)
            make.leading.equalToSuperview().offset(40)
            make.centerX.equalToSuperview()
            make.bottom.equalToSuperview()
        }
    }

    public func configDesc(desc:String) {
        descLabel.text = desc
    }
    
    private lazy var iconImageView: ImageView = {
        let iconImageView = ImageView()
        iconImageView.contentMode = .scaleAspectFit
        iconImageView.image = UIImage(named: "img_wechat_sport")
        return iconImageView
    }()
    
   private lazy var descLabel: Label = {
       let descLabel = Label()
       descLabel.textColor = UIColor.assist_222222
       descLabel.font = Fonts.systemFont(ofSize: 16)
       descLabel.numberOfLines = 0
       return descLabel
    }()

}
